//
//  MyContactsTableViewController.m
//  Rockval
//
//  Created by Linh Tran on 6/7/14.
//  Copyright (c) 2014 TNL. All rights reserved.
//

#import "MyContactsTableViewController.h"
#import "MyContactTableViewCell.h"

@interface MyContactsTableViewController ()

@end

@implementation MyContactsTableViewController

- (id)initWithStyle:(UITableViewStyle)style {
	self = [super initWithStyle:style];
	if (self) {
		// Custom initialization
	}
	return self;
}

- (void)viewDidLoad {
	[super viewDidLoad];

	// Uncomment the following line to preserve selection between presentations.
	// self.clearsSelectionOnViewWillAppear = NO;

	// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
	// self.navigationItem.rightBarButtonItem = self.editButtonItem;
}

- (void)didReceiveMemoryWarning {
	[super didReceiveMemoryWarning];
	// Dispose of any resources that can be recreated.
}

//================================ UITABLEVIEW ================================
#pragma mark -
#pragma mark UITABLEVIEW

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	NSInteger count = 1;
	return count;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	NSInteger count = 10;
	return count;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 50.f;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	MyContactTableViewCell *cell = (MyContactTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"MyContactTableViewCell"];
    [cell.titleLabel setText:@"Michael"];
	return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	[tableView deselectRowAtIndexPath:indexPath animated:YES];
}

@end
